package lee.vioson.remotedata.bean

import android.icu.text.SimpleDateFormat
import java.util.Date
import java.util.Locale

/**
 *Author:viosonlee
 *Date:2023/6/12
 *DESCRIPTION:
 */
data class PurchaseHistory(
    val time: Long,
    val type: String,
    val amount: Double
) {
    val timeStr: String
        get() = SimpleDateFormat("MMM d,yyyy hh:mm:ss", Locale.US).format(Date(time))
}
